RS block

Short summary

Name

RS

→POU type

→function block

Category

Standard (safe), Bistable

Conform to →IEC-standard

(tick) no restrictions

Graphical interface

Available since

version 1.0.0 (for Neuron Power Engineer) - initial variant

version 3.8.0 (for library Standard (safe)): block provided in this library

Functionality

The block serves for short-term or lasting storage of logical states. Hence it is the equivalent to the seal-in circuit known in the contactor technique.

→Turning input S on triggers output Q1 to return value TRUE (or an equivalent) . Turning input R1 on triggers output Q1 to return value FALSE (or an equivalent). The identification R1 indicates that this input is dominant.

In-/outputs

 

Identifier

→Data type

Description

Inputs:

S

BOOL

set

R1

BOOL

reset (dominant)

Outputs:

Q1

BOOL

 

Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

See:

Example for usage within ST-editor

PROGRAM Test
    VAR
        DB_On     : RS;
        Out       : BOOL;
        TriggerS  : BOOL;
        TriggerR1 : BOOL;
    END_VAR
 
    DB_On(S := TriggerS, R1 := TriggerR1, Q1 => Out);
    (* Instance of block 'RS' is called. *)
    (* Input 'S' gets value from 'TriggerS' variable. Input 'R1' gets value from 'TriggerR1' variable.*) 
    (* Output 'Q' returns TRUE, if 'TriggerS' is TRUE and 'TriggerR1' is FALSE. Output 'Q' returns FALSE, if 'TriggerR1' is TRUE. *)
    (* Variable 'Out' accesses the output 'Q1'. *)
END_PROGRAM

When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.